package com.dsw.demo.rabbitmq.service;

import com.dsw.demo.rabbitmq.config.DirectRabbitMQConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectReceiver {

    @RabbitListener(queues = DirectRabbitMQConfig.DIRECTQUEUE)
    public void directReceiver(String msg) {
        System.out.println("direct queue message: " + msg);
    }

}
